home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / Effect library / Demo ƒ / MSG Shell ƒ / msg sounds.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-12  |  1.4 KB  |  49 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg sounds.h
  4.  
  5. Purpose:    This is the header file for msg sounds.c
  6.  
  7.  
  8. MSG Demo -- graphic effects demonstration program
  9. Copyright (C) 1992-4 Mark Pilgrim & Dave Blumenthal
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #include <Sound.h>
  29.  
  30. #define NUM_SOUNDS        5
  31.  
  32. enum
  33. {
  34.     sound_aboutMSG = 1000,
  35.     sound_fluff,
  36.     sound_on,
  37.     sound_virgin,
  38.     sound_crash
  39. };
  40.  
  41. extern    SndChannelPtr        myChannel;
  42. extern    Handle                MySounds[NUM_SOUNDS];
  43. extern    Boolean                gSoundToggle;
  44. extern    Boolean                gSoundAvailable;
  45.  
  46. void InitSounds(void);
  47. void DoSound(int whichSound, Boolean async);
  48. void CloseSounds(void);
  49.